<?php $name = system_controller_front::getInstance()->getRequest()->getActionName(); ?>
<div class="body tabs">
	<ul class="list">
		<li<?php if($name=='list') echo ' class="current"'; ?>><a href="<?php echo $this->url('collection/site/list');?>"><?php echo $this->language('ALL SITE LIST');?><?php if($name=='list') echo ' »'; ?></a></li>
		<?php if($this->row && $this->row->getId()) { ?>
		<li<?php if($name=='edit') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('collection/site/edit', array('id' => $this->row->getId()));?>"><?php echo $this->language('EDIT SITE');?><?php if($name=='edit') echo ' »'; ?></a>
		</li>
		<li<?php if($name=='collect') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('collection/site/collect', array('id' => $this->row->getId()));?>"><?php echo $this->language('COLLECT');?><?php if($name=='collect') echo ' »'; ?></a>
		</li>
		<li<?php if($name=='item') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('collection/item/index', array('site_id' => $this->row->getId()));?>"><?php echo $this->language('ITEMS');?><?php if($name=='item') echo ' »'; ?></a>
		</li>
		<?php } else { ?>
		<li<?php if($name=='addnew') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('collection/site/addnew');?>"><?php echo $this->language('CREATE A NEW SITE');?><?php if($name=='addnew') echo ' »'; ?></a>
		</li>
		<?php } ?>
	</ul>
	<div class="clearfix"></div>
</div>
